import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 试乘试驾车检核信息提报

// 列表查询 /ttVsTestDirveCheck/page
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveCheck/page`, params)


// 详情  /ttVsTestDirveCheck/detailedQuery
export const queryById = (id) => axios.get(`${SERVER.RETAIL}/ttVsTestDirveCheck/detailedQuery?id=${id}`)

// 保存 提交 /ttVsTestDirve/saveOne
export const saveData = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveCheck/addOne`, params)

// 批量删除  /ttVsTestDirve/delList
export const delById = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveCheck/delList`, params)

// 导出 /ttVsTestDirveCheck/excel
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveCheck/excel`, params, {
  responseType: 'blob'
})
//  查车 /queryVehicle
export const VINInfo = (params) => axios.post(`${SERVER.RETAIL}/ttVsTestDirveCheck/queryVehicle`, params)

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
